package J11_5;
interface Printable {
    void print();
}

interface Readable {
    void read();
}

interface Displayable {
    void display();
}

// 类实现了 Printable, Readable, 和 Displayable 接口
class Document implements Printable, Readable, Displayable {
    public void print() {
        System.out.println("打印文档");
    }

    public void read() {
        System.out.println("读取文档");
    }

    public void display() {
        System.out.println("展示文档");
    }
}

public class Main {
    public static void main(String[] args) {
        Document document = new Document();
        document.print();
        document.read();
        document.display();
    }
}
